//
// ftNode.cpp
//
#include "stdafx.h"
#include "ftNode.h"

ftNode::ftNode(void)
	:m_pParent(0),
	m_nSubLevel(0),
	m_dwFileAttributes(0),
	m_dwNodeSizeHigh(0),
	m_dwNodeSizeLow(0)
{
	//memset(&m_fd, 0, sizeof(WIN32_FIND_DATA));
}

ftNode::~ftNode(void)
{
	int nSizeLeaf = m_arrLeaf.GetSize();
	if (nSizeLeaf>0)
	{
		int i;
		for (i= nSizeLeaf-1; i>=0; i--)
		{
			delete m_arrLeaf.GetAt(i);
		}
		m_arrLeaf.RemoveAll();
	}
	ASSERT(m_arrLeaf.GetSize() == 0);
	int nSizeSubNode = m_arrSubNode.GetSize();
	if (nSizeSubNode>0)
	{
		int i;
		for (i= nSizeSubNode-1; i>=0; i--)
		{
			delete m_arrSubNode.GetAt(i);
		}
		m_arrSubNode.RemoveAll();
	}
	ASSERT(m_arrSubNode.GetSize() == 0);
}
